package net.mymilkedeek.ludum;

import net.mymilkedeek.ludum.tinythumb.Game;
import net.mymilkedeek.ludum.tinythumb.util.Constants;
import net.mymilkedeek.ludum.tinythumb.util.Strings;
import org.newdawn.slick.AppGameContainer;
import org.newdawn.slick.SlickException;
import org.newdawn.slick.util.Log;

/**
 * TODO: Write Documentation
 *
 * @author Michael Demey
 */
public class Main {
    
    public static void main(String[] args) throws SlickException { // yeah lol
        Log.debug("MAIN       - Starting application.");
        AppGameContainer gameContainer = new AppGameContainer(new Game(Strings.game_title));
        gameContainer.setShowFPS(false);
        gameContainer.setDisplayMode(Constants.screen_width, Constants.screen_height, false);
        gameContainer.setTargetFrameRate(Constants.FPS);
        gameContainer.setVSync(true);
        Log.debug("start game");
        gameContainer.start();
    }

}